package br.com.fogas.webservice.parser.datahora;

import org.simpleframework.xml.Default;
import org.simpleframework.xml.Element;
import org.simpleframework.xml.Namespace;
import org.simpleframework.xml.NamespaceList;
import org.simpleframework.xml.Order;
import org.simpleframework.xml.Root;

import br.com.fogas.webservice.parser.BaseParser;

@Root(name = "soapenv:Envelope")
@NamespaceList({ 
	@Namespace(prefix = "xmlns:soapenv", reference = "http://schemas.xmlsoap.org/soap/envelope/"),
	@Namespace(prefix = "xmlns:dat", reference = "http://fogas.com.br/sfr/RepasseSMS/DataHora")
})
@Order(elements={"Header", "Body"})
public class PingServidorEnvelope extends BaseParser {

	@Element(required=false, name = "Header")
	public Header header = new Header();

	@Element(required=false, name="Body")
	public Body body = new Body();

	public static class Header {
		@Default
		@Element(required=false)
		public String header;
	}

	public static class Body {
		@Element(required=false, name="dat:mt_get_date_time")
		public DataHoraServidorRequest dataHoraServidorRequest = new DataHoraServidorRequest();
	}
}